package com.frcdi.qms.masterdata.domain;

import com.frcdi.qms.common.annotation.Excel;
import com.frcdi.qms.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 单位对象 md_unit
 *
 * @author cell
 * @date 2023-09-25
 */
@ApiModel(value = "单位对象")
public class Unit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 单位名称 */
    @Excel(name = "单位名称")
    private String unitName;

    /** 所属类型 */
    @Excel(name = "所属类型")
    private Long unitType;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 所属类型对象 */
    private UnitType unitTypeList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUnitName(String unitName)
    {
        this.unitName = unitName;
    }

    public String getUnitName()
    {
        return unitName;
    }
    public void setUnitType(Long unitType)
    {
        this.unitType = unitType;
    }

    public Long getUnitType()
    {
        return unitType;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public UnitType getUnitTypeList() {
        return unitTypeList;
    }

    public void setUnitTypeList(UnitType unitTypeList) {
        this.unitTypeList = unitTypeList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("unitName", getUnitName())
            .append("unitType", getUnitType())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
